const data = [
  {'id': 1, 'title': '电水壶', 'price': 50.1, 'src':'../../static/goods_pic/1.jpg'},
  {'id': 2, 'title': '电压力锅', 'price': 50.2, 'src':'../../static/goods_pic/2.jpg'},
  {'id': 3, 'title': '电饭煲', 'price': 50.3, 'src':'../../static/goods_pic/3.jpg'},
  {'id': 4, 'title': '电磁炉', 'price': 50.4, 'src':'../../static/goods_pic/4.jpg'},
  {'id': 5, 'title': '电微波炉', 'price': 50.5, 'src':'../../static/goods_pic/5.jpg'},
  {'id': 6, 'title': '电饼铛', 'price': 50.6, 'src':'../../static/goods_pic/6.jpg'},
  {'id': 7, 'title': '豆浆机', 'price': 50.7, 'src':'../../static/goods_pic/7.jpg'},
  {'id': 8, 'title': '多用途锅', 'price': 50.8, 'src':'../../static/goods_pic/8.jpg'}
]

// 通过export输出getGoodsList方法
export default {
  getGoodsList(callback) {
    setTimeout(() => {
      callback(data)
    }, 1000);
  }
}